package com.zks.example.FutureTest;

import java.util.concurrent.*;

public class FutrueMain {

    public static void main(String[] args) throws ExecutionException, InterruptedException {
        ExecutorService executorService = Executors.newFixedThreadPool(3);
        Future<String> submit = executorService.submit(new RealData());
        String s = submit.get();
        System.out.println(s);
        executorService.shutdownNow();

    }
}
